<?php

namespace module\index\validate;

use app\Validate;

class Album extends Validate
{
    /**
     * 场景
     *
     * @var array<array>
     */
    protected $scene = [
        'read' => ['id'],
        'tree' => ['activity_id'],
        'index' => ['page', 'pageSize'],
    ];
    /**
     * 规则.
     *
     * @var array<string>
     */
    protected $rule = [
        'page' => 'integer|>:0',
        'pageSize' => 'integer|>:0',
        'id' => 'require|integer|>:0',
        'activity_id' => 'require|integer|>:0',
    ];
    /**
     * 字段描述
     * 
     * @var array<string>
     */
    protected $field = [
        'page' => '页码',
        'pageSize' => '分页大小',
        'id' => 'ID',
        'activity_id' => '活动ID',
        'page' => '页码',
        'pageSize' => '分页大小',
    ];
}
